package gaobo.stack;

public class Test {
    public static void main(String[] args) {
//        MyStack myStack = new MyStack();
//        myStack.push(1);
//        myStack.push(2);
//        myStack.push(3);
//        myStack.push(4);
//
//        int x1 = myStack.pop();
//        System.out.println(x1);
//        x1 = myStack.pop();
//        System.out.println(x1);
//        x1 = myStack.pop();
//        System.out.println(x1);
//
//
//        int x2 = myStack.peek();
//        System.out.println(x2);
//        x2 = myStack.peek();
//        System.out.println(x2);

        //123*+45*6+7*+
//        String[] arr = {"1","2","3","*","+","4","5","*","6","+","7","*","+"};
//        MyStack myStack = new MyStack();
//        System.out.println(myStack.evalRPN(arr));

//        String s = "[[[]]])";
//        MyStack myStack = new MyStack();
//        System.out.println(myStack.isValid(s));

          int [] pushA = {1,2,3,4,5};
          int [] pushB = {4,5,2,3,1};
          MyStack myStack = new MyStack();
          System.out.println(myStack.isPopOrder(pushA,pushB));
    }
}
